<%--
  Created by IntelliJ IDEA.
  User: yiyi
  Date: 2018/8/14
  Time: 14:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商务管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/css/bootstrap.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
</head>
<body>
<h1>商务管理系统</h1>
<p>用户名: ${users.name}&nbsp; &nbsp; &nbsp;用户类型:${users.typename}&nbsp; &nbsp; &nbsp;<input type="button" onclick="deleteJobDetail()" value="退出"/></p>
<a href="javascript:;" onclick="upd()">修改密码</a><br>
<a href="javascript:;" onclick="cvip()">查看所有会员</a>
<div style="width: 700px; height: 500px;border: solid 10px black;position: absolute;top: 120px;left: 150px;"  id="shops" >
  <h1>欢迎使用商务会员管理系统</h1>
</div>
</body>
<script>
    function deleteJobDetail() {

        if (window.confirm('你确定要退出吗')) {

            //后台删除数据方法
            location.href = "${pageContext.request.contextPath}/delteuser"
            return true;

        } else {

            return false;

        }

    }
    function upd() {
        var links='<iframe  style="width: 100%; height: 100%;" src= "${pageContext.request.contextPath}/recompose"></iframe>';

        $('#shops').html(links);
    }
    function cvip() {
        var links=' <iframe style="width: 100%; height: 100%;" src="${pageContext.request.contextPath}/CvipServlet"></iframe>';

        $('#shops').html(links);
    }
</script>
</html>
